package com.example.carRental.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.sun.istack.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.lang.Nullable;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Car {
  @Nullable
  private Integer id;
  @NotNull
  private String brand;
  @NotNull
  private String model;
  @NotNull
  private Integer priceDay;
  @NotNull
  private String carNumber;
  private Integer chartererId;
  @TableField(exist = false)//非数据库字段
  private String chartererName;
  @Nullable
  private List<String> image;
  @Nullable
  private Integer type;

}
